<%@page import="java.util.HashMap"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Khutro - Control panel</title>

<link rel="stylesheet" type="text/css" href="khutro/css/khutro.css">
<link rel="stylesheet" type="text/css" href="khutro/css/jquery-ui.css">
<script type="text/javascript" src="khutro/js/jq.js"></script>
<script type="text/javascript" src="khutro/js/jq2.js"></script>
<script type="text/javascript" src="khutro/js/superfish.js"></script>
<script type="text/javascript"><!--
$(document).ready(function() {
	$('#menu > ul').superfish({
		hoverClass	 : 'sfHover',
		pathClass	 : 'overideThisToUse',
		delay		 : 0,
		animation	 : {height: 'show'},
		speed		 : 'normal',
		autoArrows   : false,
		dropShadows  : false, 
		disableHI	 : false, /* set to true to disable hoverIntent detection */
		onInit		 : function(){},
		onBeforeShow : function(){},
		onShow		 : function(){},
		onHide		 : function(){}
	});
	
	$('#menu > ul').css('display', 'block');
});
function checkadmin(){
	var role = ${userRoleIdss};
	
}
//-->
</script> 
</head>
<body onload="checkadmin();">
<form action="">
	<input type="hidden" id="roleId"/>
</form>
<c:choose>

<c:when test="${userRoleIdss ==1 }">
<script language="javascript" type="text/javascript">
<!--
var dle_act_lang   = ["Yes", "No", "Enter", "Cancel"];
//-->
</script>
<div id="loading-layer"><div id="loading-layer-text">Please wait...</div></div>

<div id="container">
<div id="header">
  <div class="div1">
    <div class="div2"><img src="khutro/images/logo.png" title="Administration" onclick="location = adminloadsystem.action" alt=""></div>
        <div class="div3"><img src="./khutro/images/lock.png" alt="" style="position: relative; top: 3px;">&nbsp;Welcome:  <span><s:property value="#session['displayNamess']" /> (Administrator)</span> &nbsp; <a href="logout.action" class="navigation">Logout</a></div>
      </div>
    <div id="menu">
    <ul class="left sf-js-enabled" style="display: block; ">
      <li><a href="adminloadsystem.action" class="top">Quick Links</a>
        <ul style="display: none; visibility: hidden; ">
          <li><a href="checkaddtopic.action">Add PostNews</a></li>
          <li><a href="checkaddsharetopic.action">Add ShareNews</a></li>
          <li><a href="admin-listtopicload.action">Edit (Reviews/Approve) News</a></li>
          <li><a href="adminspamtopicdo.action">Report Topic</a></li>
          <li><a href="admin-locationload.action">Location</a></li>
        </ul>
      </li>
      <li class=""><a class="top">User Management</a>
        <ul style="visibility: hidden; display: none; ">
          <li><a href="admin-userlistload.action">Users</a></li>
          <li><a href="profileuser.action">Admin Profile </a></li>
        </ul>
      </li>
      <li class=""><a class="top" href="adminlogs.action">Activity Logs and Monitors</a>
      </li>
    </ul>
    <ul style="display: block; " class="right sf-js-enabled">
      <li><a href="adminloadsystem.action" class="top">Quick Links</a></li>
      <li style="cursor:pointer !important"><a onclick="window.open('index.action');" class="top">View Live Site</a></li>
<!--      <li><a class="top" href="/admin.jsp?action=logout">Logout</a></li> -->
    </ul>
  </div>
  </div>
<div id="content">

<table align="center" id="main_body" style="width:98%;">
    <tbody><tr>
        <td width="4" height="16"><img src="./khutro/images/tb_left.gif" width="4" height="16" border="0"></td>
		<td background="./khutro/images/tb_top.gif"><img src="./khutro/images/tb_top.gif" width="1" height="16" border="0"></td>
		<td width="4"><img src="./khutro/images/tb_right.gif" width="3" height="16" border="0"></td>
    </tr>
	<tr>
        <td width="4" background="./khutro/images/tb_lt.gif"><img src="./khutro/images/tb_lt.gif" width="4" height="1" border="0"></td>
		<td valign="top" style="padding-top:12px; padding-left:13px; padding-right:13px;" bgcolor="#FAFAFA">
		
<div style="padding-top:5px;">
<table width="100%">
    <tbody>
    <tr>
      <td width="4">&nbsp;</td>
      <td width="6">&nbsp;</td>
    </tr>
</tbody></table>
</div>
<!--MAIN area--><div style="padding-top:5px;padding-bottom:2px;">
<table width="100%">
    <tbody><tr>
        <td width="4"><img src="./khutro/images/tl_lo.gif" width="4" height="4" border="0"></td>
        <td background="./khutro/images/tl_oo.gif"><img src="./khutro/images/tl_oo.gif" width="1" height="4" border="0"></td>
        <td width="6"><img src="./khutro/images/tl_ro.gif" width="6" height="4" border="0"></td>
    </tr>
    <tr>
        <td background="./khutro/images/tl_lb.gif"><img src="./khutro/images/tl_lb.gif" width="4" height="1" border="0"></td>
        <td style="padding:5px;" bgcolor="#FFFFFF">
<table width="100%">
    <tbody><tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">Quick Links</div></td>
    </tr>
</tbody></table>
<div class="unterline"></div>
<table width="100%">
    <tbody><tr>
        <td width="50%">
<table width="100%">
    <tbody><tr>
        <td width="70" height="70" valign="middle" align="center" style="padding-top:5px;padding-bottom:5px;"><img src="./khutro/images/uset.png" border="0"></td>
        <td valign="middle"><div class="quick"><a href="admin-userlistload.action"><h3>Users</h3>Manage users.</a></div></td>
    </tr>
</tbody></table>
</td>
        <td>
<table width="100%">
  <tr>
    <td width="70" height="70" valign="middle" align="left" style="padding-top:5px;padding-bottom:5px;"><img src="./khutro/images/nset.png" border="0" /></td>
    <td width="76%" valign="middle" align="left"><div class="quick" style="left: 0"><a href="adminspamtopicdo.action">
      <h3>Report Topic </h3>
      View report list.</a></div></td>
  </tr>
    <tbody>
</tbody></table>
</td>
    </tr>
    <tr>
      <td>
  <table width="100%">
    <tbody><tr>
      <td width="70" height="70" valign="middle" align="center" style="padding-top:5px;padding-bottom:5px;"><img src="./khutro/images/spset.png" border="0"></td>
      <td valign="middle"><div class="quick"><a href=adminloadsystem.action><h3>Static Pages</h3>Create or edit static pages.</a></div></td>
      </tr>
  </tbody></table>
  </td>
      <td>
  <table width="100%">
    <tr>
      <td width="70" height="70" align="left" valign="middle" style="padding-top:5px;padding-bottom:5px;"><img src="./khutro/images/next.png" border="0" /></td>
      <td width="76%" valign="middle"><div class="quick"><a href="admin-locationload.action">
        <h3>All location list</h3>
        View of all location available.</a></div></td>
    </tr>
    <tbody>
  </tbody></table>
  </td>
    </tr>
</tbody></table>
</td>
        <td background="./khutro/images/tl_rb.gif"><img src="./khutro/images/tl_rb.gif" width="6" height="1" border="0"></td>
    </tr>
    <tr>
        <td><img src="./khutro/images/tl_lu.gif" width="4" height="6" border="0"></td>
        <td background="./khutro/images/tl_ub.gif"><img src="./khutro/images/tl_ub.gif" width="1" height="6" border="0"></td>
        <td><img src="./khutro/images/tl_ru.gif" width="6" height="6" border="0"></td>
    </tr>
</tbody></table>
</div><script language="javascript" type="text/javascript">
<!--
function check_files ( folder ){


	if (folder == "snap") {

	    DLEconfirm( 'Are you sure all these files are safe to be included in the snapshot?', 'Confirm', function () {
			document.getElementById( 'main_title' ).innerHTML = 'Scan for viruses';
			document.getElementById( 'antivirus' ).innerHTML = 'Scanning files and folders...';

			ShowLoading('');		
			$.post('engine/ajax/antivirus.php', { folder: folder, key: "" }, function(data){
		
				HideLoading('');
		
				$('#antivirus').html(data);
		
			});

		} );

	} else {

		document.getElementById( 'main_title' ).innerHTML = 'Scan for viruses';
		document.getElementById( 'antivirus' ).innerHTML = 'Scanning files and folders...';
	
		ShowLoading('');		
		$.post('engine/ajax/antivirus.php', { folder: folder, key: "" }, function(data){
		
			HideLoading('');
		
			$('#antivirus').html(data);
		
		});

	}

	return false;
}

//-->
</script><div style="padding-top:5px;padding-bottom:2px;">


<table width="100%">
    <tbody><tr>
        <td width="4"><img src="./khutro/images/tl_lo.gif" width="4" height="4" border="0"></td>
        <td background="./khutro/images/tl_oo.gif"><img src="./khutro/images/tl_oo.gif" width="1" height="4" border="0"></td>
        <td width="6"><img src="./khutro/images/tl_ro.gif" width="6" height="4" border="0"></td>
    </tr>
    <tr>
        <td background="./khutro/images/tl_lb.gif"><img src="./khutro/images/tl_lb.gif" width="4" height="1" border="0"></td>
        <td style="padding:5px;" bgcolor="#FFFFFF">
<table width="100%">
    <tbody><tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation" id="main_title">Additional information</div></td>
    </tr>
</tbody></table>
<div class="unterline"></div>

<div id="antivirus">
	<script type="text/javascript">
		$(function(){
			$("#tabset").buildMbTabset({
				sortable:false,
				position:"left"
			});

			$.ajaxSetup({
				cache: false
			});

			$('#clearbutton').click(function() {

				$('#main_box').html('Connecting to the server. Please, wait');

				$.get("engine/ajax/adminfunction.php?action=clearcache", function( data ){

					$('#cachesize').html('0 b');
					$('#main_box').html(data);

				});
				return false;
			});

			$('#clearsubscribe').click(function() {

			    DLEconfirm( 'Are you sure you want to perform this action? Cancel it will be impossible.', 'Confirm', function () {

					$('#main_box').html('Connecting to the server. Please, wait');
					$.get("engine/ajax/adminfunction.php?action=clearsubscribe", function( data ){
						$('#main_box').html(data);
					});
				} );
				return false;
			});

			$('#check_updates').click(function() {

				$('#main_box').html('Connecting to the server. Please, wait');
				$.get("engine/ajax/updates.php?versionid=9.5", function( data ){
					$('#main_box').html(data);
				});
				return false;
			});

			$('#send_notice').click(function() {

				$('#send_result').html('Connecting to the server. Please, wait');
				var notice = $('#notice').val();
				$.post("engine/ajax/adminfunction.php?action=sendnotice", { notice: notice } , function( data ){
					$('#send_result').append('&nbsp;' + data);
				});
				return false;
			});

		});
	</script>

		<div class="tabset mbTabset left" id="tabset">
			<a id="a" class="tab  {content:&#39;cont_1&#39;} sel mbTab" content="cont_1"><span>Site Information:</span></a></div>
        <div class="mbTabsetContainer" id="tabset_container"><div id="cont_1" style="" class="tabContent">
<table width="100%" height="100%">
    <tbody><tr>
        <td width="265" style="padding:2px;">Total articles:</td>
        <td>${totaltopic}</td>
    </tr>
    <tr>
        <td style="padding:2px;">Report received:</td>
        <td>0</td>
    </tr>
    <tr>
        <td style="padding:2px;">Registered users:</td>
        <td>${totalUser}</td>
    </tr>
    <tr>
        <td style="padding:2px;">Banned users: </td>
        <td><font color="red">${totalUserBanner}</font></td>
    </tr>
</tbody></table>

<div id="cont_3" style="display: none; " class="tabContent">
<table width="100%">
    <tbody>
    <tr>
        <td width="265" style="padding:2px;">License type:</td>
        <td>Licensed to <a href="http://khutro.net/" target="_blank"><b>http://khutro.net/</b></a> » <a href="http://www.dlestater.com/" target="_blank"><b>Nulled by <font color="red">DLE TEAM</font></b></a></td>
    </tr>
    
</tbody></table>		</div></div>

		
		


		
</div>
</td>
        <td background="./khutro/images/tl_rb.gif"><img src="./khutro/images/tl_rb.gif" width="6" height="1" border="0"></td>
    </tr>
    <tr>
        <td><img src="./khutro/images/tl_lu.gif" width="4" height="6" border="0"></td>
        <td background="./khutro/images/tl_ub.gif"><img src="./khutro/images/tl_ub.gif" width="1" height="6" border="0"></td>
        <td><img src="./khutro/images/tl_ru.gif" width="6" height="6" border="0"></td>
    </tr>
</tbody></table>	 <!--MAIN area-->
	<div style="height:8px; display:block"></div>

		</div></td>
		<td width="4" background="./khutro/images/tb_rt.gif"><img src="./khutro/images/tb_rt.gif" width="4" height="1" border="0"></td>
    </tr>
	<tr>
        <td height="16" background="./khutro/images/tb_lb.gif"></td>
		<td background="./khutro/images/tb_tb.gif"></td>
		<td background="./khutro/images/tb_rb.gif"></td>
    </tr>
</tbody></table>

<div style="padding-bottom:10px;">
<table width="100%">
    <tbody><tr>
        <td height="40" align="center" style="padding-right:10px;background: #FAFAFA url('engine/skins/images/footer.gif') repeat-x 0 0;"><div class="navigation">Fu Team | FSH-Project<br>Copyright 2012©. All rights reserved.</div></td>
    </tr>
</tbody></table></div>	
</div>

</div>

<script language="javascript" type="text/javascript">
<!--
function getClientWidth()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}
var main_body_size = getClientWidth();

if (main_body_size > 1300) document.getElementById('main_body').style.width = "1200px";

//-->
</script>


<div id="hintbox">
</div>
</c:when>
<c:otherwise>
	<c:redirect url="adminlogin.jsp"/>
</c:otherwise>
</c:choose>
</body>
</html>